home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1996 / MacHack 1996.toast / Hacks / Hacks ’92 / battmonitor ƒ / About BattMonitor next >
Encoding:
Text File  |  1992-06-22  |  1.1 KB  |  31 lines  |  [TEXT/MPS ]

  1. # BattMonitor - A PowerBook voltage monitoring utility.  
  2. # By Christian Russ @ MacHack 1992
  3.  
  4. # BattMonitor consists of a queue of 1000 values sampled from the 
  5. # Power Manager at 10 samples/second.  There is a seconary queue that
  6. # receives values at 1 sample/second.  By displaying either queue and
  7. # by allowing sample down values of 1,2,3, and 4, BattMonitor will show
  8. # the “Voltage History” of your battery within a PowerBook 100, 140, or
  9. # 170.
  10.  
  11. # There are two menu entries labeled 'Voltage' and '∂V/∂t'.  The former
  12. # will show the voltage history and the latter will show the first derivate.
  13.  
  14. # Features not implemented:
  15. #    • Horizontal scale to better show rate of decay
  16. #    • Estimate of time remaining given current decay curve
  17. #    • Gestalt call to prevent crash on NON-Power Manager machines
  18. #    • Auto-Squirrel recharging system.
  19.  
  20. # to compile, hilight the following and press 'enter'
  21.  
  22. c "xxx:GetVoltage.c"
  23. pascal "xxx:batt monitor.p"
  24. link     "xxx:batt monitor.p.o" -c Batø  -d xxx:GetVoltage.c.o ∂
  25.         {Libraries}Runtime.o {pLibraries}PasLib.o  ∂
  26.          {Libraries}Interface.o -o xxx:BattMonitor
  27.  
  28. xxx:battmonitor
  29.  
  30.  
  31. # Enjoy